<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdminAgentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admin_agent', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('admin_user_id')->comment('用户ID');
            $table->string('card_holder', 32)->default('')->comment('持卡人');
            $table->string('bank_name',30)->default('')->comment('所属银行');
            $table->string('bank_card',30)->default('')->comment('银行卡号');
            $table->string('open_card_bank',30)->default('')->comment('开户行');
            $table->string('bank_province',30)->default('')->comment('银行卡所属省');
            $table->string('bank_city',30)->default('')->comment('银行卡所属市');
            $table->string('bank_photo')->default('')->comment('银行卡照片');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('admin_agent');
    }
}
